package com.easylinkin.linkappapi.quality.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.easylinkin.linkappapi.quality.dto.QualityScreenDTO;
import com.easylinkin.linkappapi.quality.entity.QualityQuestionDealRecord;
import com.easylinkin.linkappapi.quality.entity.vo.QualityQuestionDealRecordVo;
import java.io.Serializable;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import java.io.Serializable;
import java.util.List;

/**
 * QualityQuestionDealRecord表数据库访问层
 *
 * @author zhengwen
 * @date 2022/08/16
 */
public interface QualityQuestionDealRecordMapper extends BaseMapper<QualityQuestionDealRecord> {


    /**
     * 查询分页
     *
     * @param page                         分页参数对象
     * @param appQualityQuestionDealRecord 过滤参数对象
     * @return 查询分页结果
     */
    IPage<QualityQuestionDealRecord> selectPage(Page page, @Param("appQualityQuestionDealRecord") QualityQuestionDealRecord appQualityQuestionDealRecord);

    /**
     * 查询单条
     *
     * @param id 主键id
     * @return 查询结果
     */
    QualityQuestionDealRecord getOneById(@Param("id") Serializable id);

    /**
     * 根据问题id查询处理记录
     *
     * @param questionId 问题id
     * @return 处理记录
     */
    List<QualityQuestionDealRecord> selectDealListByQuestionId(Long questionId);


    List<QualityScreenDTO> getByMonth(String tenantId);

  List<QualityQuestionDealRecord> findByTenantId(String tenantId);
}

